package com.oxchinx.product.model.enums;

import lombok.Getter;

/**
 * Created by 廖师兄
 * 2017-12-10 23:00
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(1, "product not exist","商品不存在"),
    PRODUCT_STOCK_ERROR(2, "product stuock error","库存有误"),
    ;

    private Integer code;

    private String name;

    private String desc;

    ResultEnum(Integer code,String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }
}
